The commands
can be used to include or exclude only those slides in the given list. The
argument should expand to a comma-separated list of numbers or ranges. The
numbers do not need to be in order, the list can contain numbers that do not
correspond to any slide, and there can be duplicate numbers. Negative numbers
should be enclosed in curly braces. Since the argument is first expanded, you
can use the "#_#>SPMquot; command in the argument. For example,
\onlyslides{{-2},\ref{dp}-10,\ref{chart},0,17-999}
is legal. If "" appears in slide 5 and "" appears in
slide 12, this is equivalent to:
\onlyslides{{-2},5-10,12,0,17-999}